<?php
namespace Apps\BoxEdu\Model;

use Think\Model;

class EduKnowsModel extends \BaseModel
{
    public function load($id = "")
    {
        $data = $this->find($id);
        if (!$data) {
            return false;
        }
        // $data['section']=BoxModel("EduSubject")->get_section_one($data['knowssectionid']);
        $video_url = $data['video_url'];
        $data['video_info'] = S(md5($video_url));
        if ($video_url && (!$data['video_info']['m3u8_240'])) {
            $videoClass = new \Common\Org\Video\Video();
            $vodlist = $videoClass->VodList(array('url' => $video_url));
            $data['video_info'] = $vodlist['0'];
            S(md5($video_url), $data['video_info']);
        }
		//dump( $data['video_info']);
        return $data;
    }


}
 